projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bff6b6
)
(check_writable): Use euidaccess, not eaccess.
author
Karl Heuer
<kwzh@gnu.org>
Sat, 20 Jul 1996 07:00:51 +0000
(07:00 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Sat, 20 Jul 1996 07:00:51 +0000
(07:00 +0000)
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index d1e4a09da6d3bb92cbca419ee022a40ed0783812..a9d2b95e09ad8eda8c66049666f9292c7227613d 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-2568,8
+2568,8
@@
check_writable (filename)
return 0;
return (st.st_mode & S_IWRITE || (st.st_mode & S_IFMT) == S_IFDIR);
#else /* not MSDOS */
-#ifdef HAVE_EACCESS
- return (eaccess (filename, 2) >= 0);
+#ifdef HAVE_E
UID
ACCESS
+ return (e
uid
access (filename, 2) >= 0);
#else
/* Access isn't quite right because it uses the real uid
and we really want to test with the effective uid.